/*
 * animations.h
 *
 * Created: 12.12.2011 17:49:58
 *  Author: Halfmann
 */ 


#ifndef ANIMATIONS_H_
#define ANIMATIONS_H_

#ifndef F_CPU
	#define F_CPU 14745600UL
#endif

#include <util/delay.h>
#include <avr/interrupt.h>
#include "drawFunctions.h"
#include "globals.h"

void animation_dimmer_glow(int iterations);
void animation_rain(int iterations);
void animation_box_shrink_grow(int iterations, int rot, int flip, int16_t delay);
void animation_box_woopwoop(uint16_t delay, int grow);
void animation_stringfly2(int8_t * inputString);
void sendPixels_z(uint8_t x, uint8_t y, uint8_t z, int delay);
void sendPixels_rand_z(int iterations, int delay, int wait);
void sendplane_rand_z(unsigned char z, int delay, int wait);
void animation_random_sparkle_flash(int iterations, int voxels, int delay);
void animation_random_sparkle(void);
void animation_boxside_randsend_parallel (char axis, int origin, int delay, int mode);
void draw_positions_axis (char axis, unsigned char positions[64], int invert);
void animation_boingboing(uint16_t iterations, int delay, unsigned char mode, unsigned char drawmode);
void animation_planboing (int plane, int speed);
void animation_axis_updown_randsuspend(char axis, int delay, int sleep, int invert);
void animation_telcstairs (int invert, int delay, int val);
void animation_wormsqueeze(int size, int axis, int direction, int iterations, int delay);
void animation_loadbar(int delay);
void animation_smileyspin(int count, int delay, char bitmap);
void animation_pathmove(unsigned char *path, int length);
void animation_pathspiral(int iterations, int delay);
void animation_rand_patharound(int iterations, int delay);
void animation_path_text(int delay, char *str);
void animation_path_bitmap(int delay, char bitmap, int iterations);
void animation_blinky2();
void animation_blinky(int iterations, int delay);
void animation_dimExtremes(int iterations, int delay);
void animation_userDefinedString(uint8_t strNumber);

void waitMilliseconds(uint16_t ms);



#endif /* ANIMATIONS_H_ */